Skip to content

Conversation

pnkfelix
Copy link
Contributor

Added -Z print-region-graph debugging option; produces graphviz visualization of region inference constraint graph.

Optionally uses environment variables RUST_REGION_GRAPH=<path_template> and RUST_REGION_GRAPH_NODE=<node-id> to select which file to output to and which AST node to print.

visualization of region inference constraint graph.

Optionally uses environment variables `RUST_REGION_GRAPH=<path_template>`
and `RUST_REGION_GRAPH_NODE=<node-id>` to select which file to output
to and which AST node to print.

Note that in some cases of method AST's, the identification of AST
node is based on the id for the *body* of the method; this is largely
due to having the body node-id already available at the relevant point
in the control-flow of rustc in its current incarnation. Ideally we
would handle identifying AST's by name in addition to node-id,
e.g. the same way that the pretty-printer supports path suffixes as
well as node-ids for identifying subtrees to print.
@pnkfelix
Copy link
Contributor Author

r? @nikomatsakis

@pnkfelix
Copy link
Contributor Author

(argh my rebase didn't 100% work; closing and will reopen after fixing.)

@pnkfelix pnkfelix closed this Dec 15, 2014
lnicola pushed a commit to lnicola/rust that referenced this pull request Jun 2, 2025
fix: Fix import insertion not being fully cfg aware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants